/****************************************************************************
* copyright            : (C) 2009 William Viana Soares <vianasw@gmail.com>  *
*****************************************************************************/

/****************************************************************************
*                                                                           *
*   This program is free software; you can redistribute it and/or modify    *
*   it under the terms of the GNU General Public License as published by    *
*   the Free Software Foundation; either version 2 of the License, or       *
*   (at your option) any later version.                                     *
*                                                                           *
*****************************************************************************/

#include "point.h"
#include <iostream>

using namespace std;
using namespace ConciseQSR;

int main( int argc, char **argv )
{
    Point a( "C1", 1, 2 );
    Point b( "C2", 2, 3 );
    Point d( "C4", 2, 2 );
    Point c( "C3", 1, 3 );
    
    Point e( "C5", 4, 5 );
    Point f( "C6", 5, 6 );
    Reference ab( a, b );
    Reference ba( b, a );
    Reference bd( b, d );
    Reference ef( e, f );
    cout << a << endl << b << endl;
    cout << ab << endl;
    cout << ba << endl;
    cout << bd << endl;
    c.addRelation( "0_4", ab );
    c.addRelation( "1_2", ab );
    c.addRelation( "0_4", ba );
    c.addRelation( "2_3", bd );
    c.addRelation( "3_5", ef );
    c.showRelations();
    return 0;
}
